You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > Vector Structure > Vector Methods > Find Method > Vector.Find Method ([In] double)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Vector.Find Method ([In] double)

Finds a match for X in object values.

Syntax
C#
Visual Basic
public int Find([In] double X);

Compare real value X with all calling object elements and return the Index of last matched element. If no matching elements are found, the result is -1. 

Note This method also supports the NAN and INF search.

var a: Vector; ind: Integer; begin a.SetIt(False,[2,5,1,6]); ind := a.Find(1.0); // returns 2 (the arrays are zero based) end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!